package com.kk.provider.controller;

import com.kk.provider.service.IMessageProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * the class of springcloud-alibaba
 *
 * <p>
 * .
 *
 * @author little_lunatic
 * @date 2022-12-01
 */
@RestController
public class ProviderController {

    @Autowired
    private IMessageProvider messageProvider;

    @GetMapping("/sendMessage")
    public String sendMessage(){
        return messageProvider.sendMessage();
    }
}
